<?php if(!empty($student_all_profiles)): ?>
	<div class="accord">
	  <?php foreach($student_all_profiles as $v): ?>
			
			<?php
				$profile = isset($v['profile']) && $v['profile'] ? $v['profile'] : FALSE;
				$prs = isset($v['prs']) && $v['prs'] ? $v['prs'] : FALSE;
			?>	

			<h4>SY <?php echo $profile->sy_from.' - '.$profile->sy_to; echo $profile->desc!=''?' ( '.$profile->desc.' )':''; ?></h4>

			<div>
				<div class="row">
					<div class="large-12 columns">
					
          
          <style>
	table.data-table tbody tr td{text-align:center;}
</style>

<div class="row">
<?if(isset($system_message))echo $system_message;?>
<div class="alert-box secondary">
	Payment Records.
</div>
<?if(!empty($prs)):?>
	<div>
		<table class="table">
			<tr>
				<th colspan="6"><span class="label label-inverse">Payments Made</span></th>
			</tr>
			<tr>
				<th>Receipt Number</th>
				<th>Amount Paid</th>
				<th>Date Of Payment</th>
				<th>Mode Of Payment</th>
				<th>Remarks</th>
				<th>&nbsp;</th>
			</tr>
			<?foreach($prs as $pm):?>
			<tbody>
			<tr>
				<td><?=$pm->spr_or_no;?></td>
				<td>&#8369; <?=money($pm->spr_ammt_paid);?></td>
				<td><?=$pm->spr_payment_date;?></td>
				<td><?=$pm->spr_mode_of_payment;?></td>
				<td><?=$pm->spr_remarks;?></td>
				<td>
					<div class="btn-group">
					<a href="<?=site_url('guardian/show_payment_breakdown/'.$current_id.'/'.$profile->e_id.'/'.$pm->spr_id)?>" class="btn btn-mini">Show Payment</a>			
					</div>
				</td>
			</tr>
			<?endforeach;?>
		</tbody>
		</table>
	</div>
	<?else:?>
		<div class="alert">No Payments To Display</div>
	<?endif;?>
  
</div> 
          
					</div>
				</div>
			</div>

		<?php endforeach; ?>
	</div>
<?php endif; ?>